export function debounce(delay: number, callback: Function) {
  let task;
  const test = async () => {};
  return () => {
    clearTimeout(task);
    task = setTimeout(() => {
      callback(arguments);
    }, delay);
  };
}
